<?php
include("../inc/global.inc");
$hover=2;
$url="index.php";
$thepage=$_GET['page']?$_GET['page']:1;
$maxpage=150;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<TITLE>产品目录-三帝贸易网</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="产品目录，产品目录为您提供产品目录信息" name="description">
<META content="产品目录" name="keywords">
<LINK href="../css/body.css" type="text/css" rel="stylesheet">
<LINK href="../css/link.css" type="text/css" rel="stylesheet">
<LINK href="../css/head.css" type="text/css" rel="stylesheet">
<LINK href="css/main.css" type="text/css" rel="stylesheet">
<LINK href="../css/foot.css" type="text/css" rel="stylesheet">
</HEAD>
<BODY>
<?php include("../inc/head_top.php")?>
<?php include("../inc/index_search.php")?>
<?php include("../inc/menu.php");?>
<DIV class="topside6 side" id=mian>
<DIV class=title>您所在的位置：<A href="/">首页</A> &gt;&gt; 产品目录</DIV>
<DIV class=onl></DIV></DIV>


<div class="ProShow topside6">
<div class="title1">字母索引</div>

<ul>
<?php
for($i=ord("A");$i<=ord("Z");$i++){
?>
<li style="background:#E8E8E8"><a href="<?=chr($i)?>.html" target="_blank"><?=chr($i)?></a></li>
<?php }?>
</ul>
<div class="onl"></div>
</div>


<div class="ProShow topside6">
<div class="title1">序号索引</div>

<ul>
<?php
$rs=@mysql_query("select * from catalog where dj>1 order by id asc limit ".($thepage-1)*$maxpage.",$maxpage");
while($row=@mysql_fetch_array($rs)){
?>
<li style="background:#E8E8E8"><a href="/supply-list/<?=$row['id']?>/1.html" target="_blank"><?=$row[cat_name]?></a><br>
<a href="/supply-city/cid-<?=$row['id']?>.html" target="_blank" style="padding-left:80px; color:#999999; font-size:8px;">更多</a></li>
<?php }?>
</ul>
<div class="onl"></div>
<?php
$rs2=@mysql_query("select count(id) from catalog where dj>1");
$totalrecord=@mysql_result($rs2,0);
$totalpage=ceil($totalrecord/$maxpage);
@mysql_free_result($rs2);
if($totalpage>0){
?>
<div align="center">
<?php if($thepage>1){?>
   <a href="<?=$url?>">第一页</a>&nbsp;<a href="<?=$url?>?page=<?=$thepage-1?>">上一页</a>&nbsp;
<?php }?>  
<?php if($thepage!=$totalpage&&$totalpage>0){?>
   <a href="<?=$url?>?page=<?=$thepage+1?>">下一页</a>&nbsp;<a href="<?=$url?>?page=<?=$totalpage?>">最后一页</a>&nbsp;
<?php }?>   
   【共<font color="red"><?=$totalrecord?></font>条记录】【每页<font color="red"><?=$maxpage?></font>条记录】【共<font color="red"><?=$totalpage?></font>页】</div>
<?php }?>
</div>

<?php include("../inc/foot.php");?>
</BODY>
</HTML>